package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.request.UsersWithdrawalRequest;
import com.ytjj.qmyx.admin.model.response.UsersWithdrawalResponse;
import com.ytjj.qmyx.users.model.UsersWithdrawalRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @Version: 1.0
 */
public interface UsersWithdrawalRecordDao {

	UsersWithdrawalRecord getWithdrawalById(Integer id);

	List<UsersWithdrawalResponse> selectList(UsersWithdrawalRequest request);

	void auditSuccess(@Param("id") Integer id,
					  @Param("adminId") Integer adminId,
					  @Param("adminName") String adminName);

	void auditFail(@Param("id") Integer id,
				   @Param("failReason") String failReason,
				   @Param("adminId") Integer adminId,
				   @Param("adminName") String adminName);

	void updateTransfer(@Param("id") Integer id, @Param("status") Integer status);
}
